package com.yuhanginfo.modules.sys.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.GoodsCombStore;
import com.yuhanginfo.modules.sys.entity.GoodsCombo;
import com.yuhanginfo.modules.sys.dao.GoodsCombStoreDao;

/**
 * 套餐门店Service
 * @author lvls
 * @version 2017-11-15
 */
@Service
@Transactional(readOnly = true)
public class GoodsCombStoreService extends CrudService<GoodsCombStoreDao, GoodsCombStore> {

	@Autowired
	private GoodsCombStoreDao goodsCombStoreDao;

	
	@Transactional(readOnly = false)
	public void save(GoodsCombStore goodsCombStore) {
		super.save(goodsCombStore);
	}
	
	@Transactional(readOnly = false)
	public void delete(GoodsCombStore goodsCombStore) {
		super.delete(goodsCombStore);
	}

	@Transactional(readOnly = false)
	public void setHistoryByGoodsComboCode(GoodsCombo goodsCombo) {
		goodsCombStoreDao.setHistoryByGoodsComboCode(goodsCombo);
	}
	
}